<?php

/**
 * Cliente
 *  
 * @author Tiago Santos
 * @version 1.0
 */

require_once 'Zend/Db/Table/Abstract.php';

class UsuarioDbTable extends Zend_Db_Table_Abstract {

	protected $_name = 'usuario';
	protected $_schema = DB_SCHEMA;
	protected $_cols = array(
		'cd_usuario',
		'ds_nome',
		'ds_email',
		'ds_login',
		'ds_senha',
	);
	protected $_primary = 'cd_usuario';
	
	/*protected $_referenceMap = array(
		'EnderecoDbTable' => array(
			'columns'		=> array('cd_endereco'),
			'refTableClass'	=> 'EnderecoDbTable',
			'refColumns'	=> array('cd_endereco'),
			'onDelete'		=> 'cascade',
			'onUpdate'		=> 'cascade',
		),
		'PedidoDbTable'	=> array(
			'columns'		=> array('cd_cliente'),
			'refTableClass'	=> 'PedidoDbTable',
			'refColumns'	=> array('cd_cliente'),
			'onDelete'		=> 'cascade',
			'onUpdate'		=> 'cascade',
		),
	);
	protected $_dependentTables = array('EnderecoDbTable','PedidoDbTable');*/
	
}
